<script>
    // 基本数据类型参数传递
    function add(a, b) {
        var sum = a + b;
        a = 11;
        b = 22;
        console.log(sum);
    }

    var num1 = 10;
    var num2 = 20;
    add(num1, num2);
    console.log('a:' + num1, 'b:' + num2);

    debugger;

    function test(obj) {
        console.log(111);
        console.log(222);
        obj.age = 200;
    }

    var person = {
        name: 'lh',
        age: 100
    }
    test(person);
    console.log('age:', person.age); //
</script>